<%@ page contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String CONTEXT_PATH = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<html>
	<head>
		<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
		<title>作业</title>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/lib/jquery.min.js"></script>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/tdh/form/js/tdh.form.js"></script>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/tdh/form/js/tdh.form.placeholder.js"></script>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/tdh/form/js/tdh.input.js"></script>
		<link rel="stylesheet" href="<%=CONTEXT_PATH%>/resources/tdh/form/css/form.css" />
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/tdh/btn/js/tdh.btn.js"></script>
		<link rel="stylesheet" href="<%=CONTEXT_PATH%>/resources/tdh/btn/css/btn.css" />
		<link rel="stylesheet" href="<%=CONTEXT_PATH%>/resources/tdh/reset.css" />
		<link rel="stylesheet" href="<%=CONTEXT_PATH%>/resources/tdh/layout/css/layout.css" />
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/tdh/layout/js/tdh.layout.js" ></script>
		<link rel="stylesheet" href="<%=CONTEXT_PATH%>/resources/plugin/ztree/css/metroStyle/metroStyle.css" />
		<link rel="stylesheet" href="<%=CONTEXT_PATH%>/resources/plugin/ztree/css/metroStyle/diy.css" />
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/plugin/ztree/js/jquery.ztree.core.js" ></script>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/plugin/layui/lay/modules/layer.js" ></script>
		<link rel="stylesheet" href="<%=CONTEXT_PATH%>/resources/tdh/paging/css/paging.css" />
		<link rel="stylesheet" href="<%=CONTEXT_PATH%>/resources/plugin/dhtmlx/dhtmlxGrid/codebase/dhtmlxgrid.css" />
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/plugin/dhtmlx/dhtmlxAjax/codebase/dhtmlxcommon.js"></script>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/plugin/dhtmlx/dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/plugin/dhtmlx/dhtmlxGrid/codebase/dhtmlxgridcell.js"></script>
		<script type="text/javascript"
				src="<%=CONTEXT_PATH%>/resources/plugin/dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_pgn.js"></script>
		<link rel="stylesheet" href="<%=CONTEXT_PATH%>/resources/userList/css/userList.css"/>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/common/common.js"></script>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/userList/js/userList.js"></script>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/plugin/DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="<%=CONTEXT_PATH%>/resources/window/js/window.js"></script>
	</head>
	<body>
		<div class="tdh_layout tdh_layout_tcb">
			<div class="tdh_layout_t tdh_form_search">
				<table>
					<colgroup width="50" />
					<colgroup width="150" />
					<colgroup width="200" />
					<colgroup width="300" />
					<colgroup width="100" />
					<colgroup width="*" />
					<tr>
						<td>
							<img src="<%=CONTEXT_PATH%>${loginUser.avatar}" class="user-avatar" alt="用户头像" onclick="$('#avatar').click()"/>
							<div style="display: none">
								<form name="uploadAvatar" id="uploadAvatar" method="post" action="<%=CONTEXT_PATH%>/uploadAvatar.do" enctype="multipart/form-data" target="uploadResult">
									<input type="hidden" id="yhdm" name="yhdm" value="" />
									<input type="file" id="avatar" name="avatar" accept="image/*" onchange="doUpload('${loginUser.yhdm}')" />
								</form>
								<iframe name="uploadResult"></iframe>
							</div>
						</td>
						<td align="center">
							<p>${loginUser.yhbm}</p>
							<p>${loginUser.yhxm}</p>
						</td>
						<td class="tdTitle">用户姓名或账号:</td>
						<td class="tdCont">
							<input id="idText" class="inputText" name="idText" type="text" />
						</td>
						<td align="center">
							<button class="tdh_btn tdh_btn_blue" id="search" onclick="doSearch()">
								<i class="tdh_icon icon_search"></i>查询
							</button>
						</td>
						<td align="right">
							<button class="tdh_btn tdh_btn_white" id="new" onclick="doAdd()">
								<i class="tdh_icon icon_add"></i>新增
							</button>
							<button class="tdh_btn tdh_btn_yellow" id="logout" onclick="doLogout()">
								<i class="tdh_icon icon_change"></i>注销
							</button>
						</td>
					</tr>
				</table>
			</div>
			<div class="tdh_layout_c">
				<div class="my_layout_l">
					<ul id="test" class="ztree"></ul>
				</div>
				<div class="my_layout_r">
					<div id="userList" style="width: 100%; height: 100%"></div>
				</div>
			</div>
		</div>
	</body>
</html>
